#ifndef M0WIG_H
#define M0WIG_H

#include <QWidget>
#include "globalval.h"
#include "mqtthandler.h"

namespace Ui {
class M0Wig;
}

class M0Wig : public QWidget
{
    Q_OBJECT

public:
    explicit M0Wig(QWidget *parent = 0);
    ~M0Wig();

public slots:
    void mqttRecv(const QByteArray &msg);

    void onComboBoxChanged(int index);


private slots:
    void on_refresh_button_clicked();

private:
    Ui::M0Wig *ui;

signals:
    void modSignal(QString led, QString fan, QString fmq, QString light);

    void TemSignal(QString fmq,QString fan);
};

#endif // M0WIG_H
